package demo5;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 何华树
 * Date: 2024-09-03
 * Time: 11:36
 */
public class Test {
    public static void func(Shape shape) {
        shape.draw();
    }
    public static void main(String[] args) {
        func(new Cycle());
        func(new Triangle());
    }
}
